<?php $linkAdd = $this->baseUrl( '/admin/nhanvien/them');?>
<div><a href="<?php echo $linkAdd ?>" title="Add">Thêm mới nhân viên</a></div>
				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-check"><a id="toggle-all" ></a> </th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Tên Nhân Viên</a>	</th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Phòng Ban</a></th>
					<th class="table-header-repeat line-left"><a href="">Chức vụ</a></th>
					<th class="table-header-repeat line-left"><a href="">Năm sinh</a></th>
					<th class="table-header-repeat line-left"><a href="">Địa chỉ</a></th>
					<th class="table-header-options line-left"><a href="">Điện thoại</a></th>
				</tr>
				
				
<?php
	foreach($this->nhanvien as $nhanvien)
	{
		$id = $nhanvien->getId();
		$tennhanvien = $nhanvien->getTennhanvien();
		
		$phongban = $nhanvien->getPhongban();
		$tenphongban = $phongban->getTenphongban();
		
		$chucvu = $nhanvien->getChucvu();
		$tenchucvu = $chucvu->getTenchucvu();
		
		$namsinh = $nhanvien->getNamsinh();
		$diachi = $nhanvien->getDiachi();
		
		$dienthoai = $nhanvien->getDienthoai();
		$linkEdit = $this->baseUrl('/admin/nhanvien/capnhat/id/'. $id);
		$linkDelete = $this->baseUrl('/admin/nhanvien/xoa/id/'. $id);
?>
	<tr>
					<td><input  type="checkbox"/></td>
					<td><?php echo $tennhanvien?></td>
					<td><?php echo $tenphongban?></td>
					<td><?php echo $tenchucvu?></td>
					<td><?php echo $namsinh?></td>
					<td><?php echo $diachi?></td>
					<td><?php echo $dienthoai?></td>
					<td class="options-width">
					<a href="<?php echo $linkEdit?>" title="Edit" class="icon-1 info-tooltip">Edit</a>
					<a href="<?php echo $linkDelete?>" title="Edit" class="icon-2 info-tooltip">Delete</a>
					<a href="" title="Edit" class="icon-3 info-tooltip"></a>
					<a href="" title="Edit" class="icon-4 info-tooltip"></a>
					<a href="" title="Edit" class="icon-5 info-tooltip"></a>
					</td>
				</tr>
<?php
			
	} 
?>
			</table>
				<!--  end product-table................................... -->
				</form>
